<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var moneny = prompt("请输入班长的moneny");
        moneny = +moneny;
        if(moneny){
            if(moneny >= 2000){
            alert("班长请大家吃西餐");
        }else if(2000 > moneny && moneny >= 1500){
            alert("班长请大家吃快餐");
        }
        else if(1500 > moneny && moneny >= 1000){
            alert("班长请大家喝饮料");
        }
        else if(1000 > moneny && moneny >= 500){
            alert("班长请大家吃棒棒糖");
        }else{
            alert("下次记得把钱带够")
        }
        }else{
            alert("请输入正确的￥￥￥");
            location.reload();
        }
        var moneny2 = confirm("请选择是否继续操作!!");
        if(moneny2){
            location.reload();
        }
    </script>
</body>
</html>